//
//  HTLCBardecompression.swift
//  HIextractLicve
//
//  Created by HIextractLicve on 2024/12/4.
//

import UIKit

class HTLCBardecompression: UITabBarController {
    var eachVioViewHTLC:THLCNOrBUTTOn?
    var mindfulness:THLCNPageControll?
    var journeyHTLC:UIView?
    
    var mindfulnessKAobri:Set<Int>?
    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        
        self.tabBar.layer.cornerRadius = 40
        self.tabBar.layer.maskedCorners = [.layerMinXMinYCorner,.layerMaxXMinYCorner]

    }
    override func viewDidLoad() {
        super.viewDidLoad()
        self.tabBar.isTranslucent = true
        self.tabBar.backgroundColor = UIColor(red: 0.06, green: 0.07, blue: 0.07, alpha: 0.7000)
       
        journeyHTLC?.backgroundColor = UIColor(red: 0.06, green: 0.07, blue: 0.07, alpha: 0.01)
        
        eachVioViewHTLC = THLCNOrBUTTOn.init()
        eachVioViewHTLC?.setTitle("anchors", for: .normal)
        if journeyHTLC != nil {
            journeyHTLC?.addSubview(eachVioViewHTLC ?? THLCNOrBUTTOn.init())
            view.addSubview(journeyHTLC!)
        }
        
        mindfulness = THLCNPageControll()
        mindfulness?.numberOfPages = 1
        mindfulness?.backgroundColor = UIColor(red: 0.06, green: 0.07, blue: 0.07, alpha: 0.01)
        mindfulness?.tintColor = UIColor(red: 0.06, green: 0.07, blue: 0.07, alpha: 0.01)
        mindfulness?.sizeToFit()
        
        if journeyHTLC != nil {
            journeyHTLC?.addSubview(mindfulness ?? THLCNPageControll.init())
           
        }
        var huihuo = 43
        huihuo += 1
        var pagenorHTLC = 23
        pagenorHTLC -= 2
        let community:Set<Int> = [huihuo,pagenorHTLC]
        viewControllers = [creseting_ChiiildConbuiller_HTLC(stressdescHTL: community, iconHrLNamr: "homertys", rootBuidvcHTLs: ConsciousBreathing.init(),titSuretHTL:HTLROOOMMeasg.BinrwetioBase64("SG9tZQ==")).0,
                           creseting_ChiiildConbuiller_HTLC(stressdescHTL: community, iconHrLNamr: "commueertys", rootBuidvcHTLs:RelaxationTherapy.init() ,titSuretHTL:HTLROOOMMeasg.BinrwetioBase64("Q29tbXVuaXR5")).0,
                           creseting_ChiiildConbuiller_HTLC(stressdescHTL: community, iconHrLNamr: "mineertys", rootBuidvcHTLs: ZBreathAwareness.init(),titSuretHTL:HTLROOOMMeasg.BinrwetioBase64("TWluZQ==")).0]
        
        

      

    }
    
                              
                                
    func creseting_ChiiildConbuiller_HTLC(stressdescHTL:Set<Int>,iconHrLNamr:String,rootBuidvcHTLs:UIViewController,titSuretHTL:String) -> (HTLCGuidecompression ,Int?,Int?){
        let navi = HTLCGuidecompression.init(rootViewController: rootBuidvcHTLs)
       
        rootBuidvcHTLs.tabBarItem.image = UIImage.init(named: iconHrLNamr + "_un")?.withRenderingMode(.alwaysOriginal)
        rootBuidvcHTLs.tabBarItem.selectedImage = UIImage.init(named:iconHrLNamr + "_sel")?.withRenderingMode(.alwaysOriginal)
       
        rootBuidvcHTLs.tabBarItem.title = titSuretHTL
       
        return (navi,888,777)
    }
}


class HTLCGuidecompression: UINavigationController {
    var eachVioViewHTLC:THLCNOrBUTTOn?
    var mindfulness:THLCNPageControll?
    var journeyHTLC:UIView?
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationBar.isHidden = true
        
        if navigationBar.isHidden {
            journeyHTLC?.alpha = 1
            journeyHTLC?.layer.cornerRadius = 12
        }
        journeyHTLC?.backgroundColor = UIColor(red: 0.06, green: 0.07, blue: 0.07, alpha: 0.01)
        
        eachVioViewHTLC = THLCNOrBUTTOn.init()
        eachVioViewHTLC?.setTitle("anchors", for: .normal)
        if journeyHTLC != nil {
            journeyHTLC?.addSubview(eachVioViewHTLC ?? THLCNOrBUTTOn.init())
            view.addSubview(journeyHTLC!)
        }
        
        mindfulness = THLCNPageControll()
        mindfulness?.numberOfPages = 1
        mindfulness?.backgroundColor = UIColor(red: 0.06, green: 0.07, blue: 0.07, alpha: 0.01)
        mindfulness?.tintColor = UIColor(red: 0.06, green: 0.07, blue: 0.07, alpha: 0.01)
        mindfulness?.sizeToFit()
        
        if journeyHTLC != nil {
            journeyHTLC?.addSubview(mindfulness ?? THLCNPageControll.init())
           
        }
        
    }
    

    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
     
        if children.count > 0  && !viewController.isMember(of:HTLCBasecompression.self) {
            viewController.hidesBottomBarWhenPushed = true
        }

        super.pushViewController(viewController, animated: false)
    }
}


class HTLCBasecompression: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor(red: 0.06, green: 0.07, blue: 0.07, alpha: 1)
      
    }
   
}


class THLCNOrBUTTOn:UIButton{
}


class THLCNPageControll:UIPageControl{
}
class THLCNPageLabl:UILabel{
}
